home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Utilities / Interfaces / ODDesUtl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODDesUtl.h
  3.  
  4.     Contains:    Interface for ODDesc<->AEDesc conversion utilities
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     
  11. */
  12.  
  13. #ifndef _ODDESUTL_
  14. #define _ODDESUTL_
  15.  
  16. #ifndef __APPLEVENTS__
  17. #include <AppleEvents.h>
  18. #endif
  19.  
  20. #ifndef _ODTYPESF_
  21. #include "ODTypes.h"
  22. #endif
  23.  
  24. #ifdef __cplusplus
  25.  
  26. class ODDesc;
  27.  
  28. #else
  29.  
  30. struct ODDesc;
  31.  
  32. #endif
  33.  
  34. #ifdef _OD_IMPL_SHARE_UTILS_
  35. #pragma import on
  36. #endif
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41.  
  42. ODError ODDescToAEDesc(ODDesc* odDesc, AEDesc* aeDesc);
  43.     // The ODDesc must be a valid object. AEDesc will be allocated by this call
  44.     //    and should be disposed by the caller.
  45. ODError AEDescToODDesc(AEDesc* aeDesc, ODDesc* odDesc);
  46.     // The data in the AEDesc will be copied into the ODDesc. The AEDesc should
  47.     //    be disposed by the caller. The ODDesc should be a valid instantiation,
  48.     //    but can be empty.
  49.  
  50. //ODError AEDescChanged(AEDesc* aeDesc, ODDesc* odDesc);
  51.     // Copies changed AEDesc back into ODDesc.
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #ifdef _OD_IMPL_SHARE_UTILS_
  58. #pragma import off
  59. #endif
  60.  
  61. #endif /* _ODDESUTL_ */
  62.